package project.menu.ordermenu.listallorders;

import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;
import controllers.IAutoservice;

public class AllOrdersByPrice implements IMenuItem{
	private String name = "Sort By Price";
	private final Integer id = 4;
	private static IMenu submenu;	
	private Navigator n;
	
	public AllOrdersByPrice(){
		n=Navigator.getInstance();
	}
	
	public Integer getId() {
		return id;
	}
	
	
	public String getNameItem() {
		return name;
	}


	public static void setMenu(IMenu menu) {
		submenu = menu;
	}

	public void action(IAutoservice aut) {
	
		aut.SortOrderByPrice();
		n.drawMenu(submenu);

	}


}
